package com.sky.mapper;

import com.sky.entity.SetmealDish;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface SetmealDishMapper {
    /**
     * 批量插入套餐菜品
     * @param setmealDishes
     */
    void insertBatch(List<SetmealDish> setmealDishes);

//    /**
//     * 删除该菜品id对应的套餐菜品对应关系
//     * @param setmealId
//     */
//    @Delete("delete from setmeal_dish where setmeal_id=#{setmealId}")
//    void delete(Long setmealId);

    /**
     * 根据菜品id批量删除
     * @param idsForDel
     */
    void deleteBatch(List<Long> idsForDel);
}
